/**
 *  Copyright(C) 2007 Juri Strumpflohner
 *  All rights reserved
 *
 *  Created: 21.08.2007
 */

package org.aroundme.sandbox;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class AroundAdvice implements MethodInterceptor {
	
	public Object invoke(MethodInvocation invocation) throws Throwable {
		System.out.println("Hello world! (by " + this.getClass().getName()
				+ ")");

		invocation.proceed();

		System.out.println("Goodbye! (by " + this.getClass().getName() + ")");

		return null;
	}
	
}
